/**
 * Copyright (c) 快宝网络 kuaidihelp.com Co., Ltd. All Rights Reserved 禁止外泄以及用于其它的商业用途
 */

import request from '../utils/request';

// 获取服务派费
export async function getDispatchFee(params) {
  return request('/Api/YZ/Fund/getFee', {
    method: 'POST',
    body: params,
  });
}

// 加盟商服务费申请
export async function feeApply(params) {
  return request('/Api/YZ/Fund/feeApply', {
    method: 'POST',
    body: params,
  });
}

// 服务费统计
export async function getRecord(params) {
  return request('/Api/YZ/Fund/overview', {
    method: 'POST',
    body: params,
  });
}

// 服务费统计明细
export async function getRecordDetailed(params) {
  return request('/Api/YZ/Fund/feeDetail', {
    method: 'POST',
    body: params,
  });
}

// 服务费统计下载
export async function getExport(params) {
  return request('/Api/YZ/Fund/export', {
    method: 'POST',
    body: params,
  });
}

// 保管费设置列表（查询）
export async function getStorageFeeSettingList(params) {
  return request('/Api/YZ/Fund/storageFeeConfig', {
    method: 'POST',
    body: params,
    nonceKey: 'page',
  });
}
// 保管费设置修改
export async function changeStorageFee(params) {
  return request('/Api/YZ/Fund/setStorageFee', {
    method: 'POST',
    body: params,
  });
}
// 保管费统计列表
export async function getStorageFeeStatistics(params) {
  return request('/Api/YZ/Fund/getStorageFee', {
    method: 'POST',
    body: params,
  });
}
// 保管费发放列表
export async function getDistributionList(params) {
  return request('/Api/YZ/Fund/getStorageFeeSendList', {
    method: 'POST',
    body: params,
  });
}
// 保管费发放详情列表
export async function getDistributionDetail(params) {
  return request('/Api/YZ/Fund/settleDetail', {
    method: 'POST',
    body: params,
  });
}
// 保管费发放记录列表
export async function getDistributionRecord(params) {
  return request('/Api/YZ/Fund/settleRecord', {
    method: 'POST',
    body: params,
  });
}
// 保管费发放
export async function storageFeeRelease(params) {
  return request('/Api/YZ/Fund/sendStorageFee', {
    method: 'POST',
    body: params,
  });
}
// 保管费批量发放
export async function storageFeeReleaseBatch(params) {
  return request('/Api/YZ/Fund/batchStorageFee', {
    method: 'POST',
    body: params,
  });
}
// 服务费设置，获取下属驿站类表
export async function getSubordinatePostStations(params) {
  return request('/Api/YZ/Fund/FeeSettingList', {
    method: 'POST',
    body: params,
    nonceKey: 'page,pageSize',
  });
}
// 服务费设置，下属驿站开启或关闭
export async function postStationsOnOff(params) {
  return request('/Api/YZ/Fund/FeeEditSetting', {
    method: 'POST',
    body: params,
  });
}
// 获取当前驿站开通的品牌
export async function getOpenBrands(params) {
  return request('/Api/YZ/Fund/getOpenBrands', {
    method: 'POST',
    body: params,
  });
}
